import request from '@/utils/request'

// 查询护理计划与护理等级中间列表
export function listBinding(query) {
  return request({
    url: '/le/binding/list',
    method: 'get',
    params: query
  })
}

// 查询护理计划与护理等级中间详细
export function getBinding(id) {
  return request({
    url: '/le/binding/' + id,
    method: 'get'
  })
}

// 新增护理计划与护理等级中间
export function addBinding(data) {
  return request({
    url: '/le/binding',
    method: 'post',
    data: data
  })
}

// 修改护理计划与护理等级中间
export function updateBinding(data) {
  return request({
    url: '/le/binding',
    method: 'put',
    data: data
  })
}

// 删除护理计划与护理等级中间
export function delBinding(id) {
  return request({
    url: '/le/binding/' + id,
    method: 'delete'
  })
}
